<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:84:"/www/wwwroot/xs.cyu0.com/public/../application/index/view/biaozhunbianzhi/index.html";i:1707222922;s:67:"/www/wwwroot/xs.cyu0.com/application/index/view/layout/default.html";i:1708842296;s:64:"/www/wwwroot/xs.cyu0.com/application/index/view/common/meta.html";i:1706953098;}*/ ?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
<title><?php echo htmlentities((isset($title) && ($title !== '')?$title:'')); ?> – <?php echo htmlentities($site['name']); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<?php if(isset($keywords)): ?>
<meta name="keywords" content="<?php echo htmlentities($keywords); ?>">
<?php endif; if(isset($description)): ?>
<meta name="description" content="<?php echo htmlentities($description); ?>">
<?php endif; ?>

<link rel="shortcut icon" href="/assets/img/favicon.ico" />

<link rel="stylesheet" href="/pc/layui/css/layui.css">
		<link rel="stylesheet" href="/pc/css/pc.css">
		<script src="/pc/js/jquery.min.js"></script>
		<script src="/pc/js/TouchSlide.1.1.js"></script>
		<script src="/pc/js/jquery.SuperSlide.2.1.3.js"></script>
		<script src="/pc/layui/layui.js"></script>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config: <?php echo json_encode($config); ?>
    };
</script>
<style>
			.search_container .layui-input {
				border: none;
				background: transparent;
				width: 125px;
			}

			.search_container .layui-input:focus,
			.search_container .layui-textarea:focus {
				border: none;
				box-shadow: none;
			}
		</style>
		
		<link href="/assets/css/user.css?v=<?php echo htmlentities(\think\Config::get('site.version')); ?>" rel="stylesheet">
	</head>

	<body>
		<header>
			<div class="hd">
				<div class="container"
					style="display: flex; align-items: center;justify-content:space-between; padding: 18px 0;">
					<img src="<?php echo $site['pc_logo']; ?>" class="logo" />
					<div class="search_container">
						<form class="layui-form"
							style="display: flex;justify-content:space-between;width: 500px; border-radius: 21.5px; border:1px solid #e5e5e5;">
							<select name="type" id="type_search">
								<option>请选择</option>
								<?php if(is_array($search_type) || $search_type instanceof \think\Collection || $search_type instanceof \think\Paginator): $i = 0; $__LIST__ = $search_type;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
								<option value="<?php echo $key; ?>" <?php if(($type==$key)): ?>selected<?php endif; ?>><?php echo $item; ?></option>
								<?php endforeach; endif; else: echo "" ;endif; ?>

							</select>
							<input class="ipt_search" id="ipt_search" type="search" name="keyword" value="<?php echo $keyword; ?>">
							<button type="button" onclick="search_btn_click()" class="layui-btn layui-btn-normal layui-btn-radius">搜索</button>
						</form>
					</div>
					<a href="<?php echo url('zhuanyeshukan/qikan_tougao'); ?>">在线投稿</a>
					<a href="<?php echo url('index/zhengshu'); ?>">证书查询</a>
					<?php if($user): ?>
					<div class="user_container">
						<img class="avatar" src="<?php echo cdnurl(htmlentities($user['avatar'])); ?>">
						<button class="layui-btn layui-btn-primary demo-dropdown-base" style="border: none;">
							<span><?php echo $user['nickname']; ?></span>
							<i class="layui-icon layui-icon-down layui-font-12"></i>
						</button>
					</div>
					<?php else: ?>
					<div class="user_container">
						<a class="layui-btn layui-btn-normal" href="javascript:void(0);" onclick="show_login()">登录</a>
						<a class="layui-btn layui-bg-red" href="javascript:void(0);" onclick="show_register()">注册</a>
					</div>
					<?php endif; ?>

				</div>
			</div>
			<div class="bd">
				<div class="container">
					<ul>
						<li <?php if((request()->controller()=='Index')): ?>class="active"<?php endif; ?>><a href="<?php echo url('index/index'); ?>">首页</a></li>
						<li <?php if((request()->controller()=='Hangyexinxi')): ?>class="active"<?php endif; ?>><a href="<?php echo url('hangyexinxi/index'); ?>">行业信息</a></li>
						<li <?php if((request()->controller()=='Xiangsuzhuangbei')): ?>class="active"<?php endif; ?>><a href="<?php echo url('xiangsuzhuangbei/index'); ?>">橡塑装备</a></li>
						<li <?php if((request()->controller()=='Zhuanyecidian')): ?>class="active"<?php endif; ?>><a href="<?php echo url('zhuanyecidian/index'); ?>">专业词典</a></li>
						<li <?php if((request()->controller()=='Zhuanyeshukan')): ?>class="active"<?php endif; ?>><a href="<?php echo url('zhuanyeshukan/index'); ?>">专业书刊</a></li>
						<li <?php if((request()->controller()=='Huiyipeixun')): ?>class="active"<?php endif; ?>><a href="<?php echo url('huiyipeixun/index'); ?>">会议培训</a></li>
						<li <?php if((request()->controller()=='Biaozhunbianzhi')): ?>class="active"<?php endif; ?>><a href="<?php echo url('biaozhunbianzhi/index'); ?>">标准编制</a></li>
						<li <?php if((request()->controller()=='Renwuzhuanlan')): ?>class="active"<?php endif; ?>><a href="<?php echo url('renwuzhuanlan/index'); ?>">人物专栏</a></li>
						<li <?php if((request()->controller()=='Hangyezhanhui')): ?>class="active"<?php endif; ?>><a href="<?php echo url('hangyezhanhui/index'); ?>">行业展会</a></li>
					</ul>
				</div>
			</div>
		</header>



		<main class="content">
			<div class="main">
	<div class="container" style="margin-bottom: 20px;">
		<div id="slideBox" class="slideBox2">
			<div class="hd">
				<ul>
					<?php if(is_array($banner) || $banner instanceof \think\Collection || $banner instanceof \think\Paginator): $i = 0; $__LIST__ = $banner;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
					<li></li>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div>
			<div class="bd">
				<ul>
					<?php if(is_array($banner) || $banner instanceof \think\Collection || $banner instanceof \think\Paginator): $i = 0; $__LIST__ = $banner;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
					<li><a href="<?php echo $item['url']; ?>" target="_blank"><img src="<?php echo $item['image']; ?>" /></a></li>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div>

			<!-- 下面是前/后按钮代码，如果不需要删除即可 -->
			<a class="prev" href="javascript:void(0)"></a>
			<a class="next" href="javascript:void(0)"></a>
		</div>
		<div style="display: flex;justify-content: space-between;">
			<div style="width: 880px; padding:0 20px 20px;background: #fff;">
				<div class="list_navs">
					<a href="<?php echo url('biaozhunbianzhi/index'); ?>" class="active">全部</a>
					<?php if(is_array($biaozhunbianzhi_type) || $biaozhunbianzhi_type instanceof \think\Collection || $biaozhunbianzhi_type instanceof \think\Paginator): $i = 0; $__LIST__ = $biaozhunbianzhi_type;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
					<a href="<?php echo url('biaozhunbianzhi/index',['type'=>$item['id']]); ?>"><?php echo $item['name']; ?></a>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</div>
				<ul class="gonggao_list">
					<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
					<a href="<?php echo url('biaozhunbianzhi/detail',['id'=>$item['id']]); ?>"><li>
						<img src="<?php echo $item['image']; ?>">
						<div class="content">
							<div class="title"><?php echo $item['title']; ?></div>
							
							<div style="color: #999;font-size: 12px;"><i class="iconfont">&#xe74a;</i> <?php echo date("Y-m-d",$item['updatetime']); ?> 【<?php echo $item['type_name']; ?>】</div>
							
						</div>
					</li></a>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
				<div style="text-align:center;"><?php echo $list->render(); ?></div>
			</div>
			<div style="width: 310px;">
				<?php if(is_array($hangyexinxi_type2) || $hangyexinxi_type2 instanceof \think\Collection || $hangyexinxi_type2 instanceof \think\Paginator): $i = 0; $__LIST__ = $hangyexinxi_type2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
				<div class="arclist_303" style="margin-bottom: 10px;">
					<div class="list_title"><?php echo $item['name']; ?></div>
					<ul class="news_list" style="height: auto;">
						<?php if(is_array($item['list']) || $item['list'] instanceof \think\Collection || $item['list'] instanceof \think\Paginator): $i = 0; $__LIST__ = $item['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$detail_item): $mod = ($i % 2 );++$i;?>
						<a href="<?php echo url('hangyexinxi/detail',['id'=>$detail_item['id']]); ?>">
							<li><?php echo $detail_item['title']; ?></li>
						</a>
						<?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
				<?php endforeach; endif; else: echo "" ;endif; ?>
			</div>
		</div>
	</div>
</div>
<script>
	jQuery(".slideBox2").slide({
		mainCell: ".bd ul",
		autoPlay: true
	});
</script>
		</main>

		<footer>
			<div class="container">
				<div class="left">
					<ul>
						<li><a href="<?php echo url('index/single',['article'=>'aboutus']); ?>">关于我们</a></li>
						<li><a href="<?php echo url('index/single',['article'=>'wangzhanfuwu']); ?>">网站服务</a></li>
						<li><a href="<?php echo url('index/single',['article'=>'guangxuanhezuo']); ?>">广宣合作</a></li>
						<li><a href="<?php echo url('index/single',['article'=>'falvshengming']); ?>">法律声明</a></li>
					</ul>
					<p>联系电话：<?php echo $site['kefutel']; ?></p>
					<p>版权所有@	<?php echo $site['name']; ?></p>
					<p><a href="https://beian.miit.gov.cn" target="_blank"><?php echo $site['beian']; ?></a></p>
				</div>
				<div class="right">
					<img src="<?php echo $site['index_qrcode1']; ?>">
					<img src="<?php echo $site['index_qrcode2']; ?>">
				</div>
			</div>
		</footer>

	</body>
	<script>
		var layer;
		layui.use(function() {
			var dropdown = layui.dropdown;
			var carousel = layui.carousel;
			var util = layui.util;
			layer = layui.layer;
			// 渲染
			dropdown.render({
				elem: '.demo-dropdown-base', // 绑定元素选择器，此处指向 class 可同时绑定多个元素
				data: [{
					title: '个人中心',
					href: "<?php echo url('user/index'); ?>",
				}, {
					title: '退出登录',
					href: "<?php echo url('user/logout'); ?>",
				}],
				click: function(obj) {
					this.elem.find('span').text(obj.title);
				}
			});

			carousel.render({
				elem: '#ID-carousel-demo-2',
				interval: 1800,
				anim: 'fade',
				width: 'auto',
				height: '330px'
			});
		});
		
		function show_register(){
			layer.open({
				type: 2,
				title: '注册',
				shadeClose: true,
				maxmin: true, //开启最大化最小化按钮
				area: ['450px', '540px'],
				content: ["<?php echo url('login/register'); ?>", 'no'],
			  });
		}
		
		function show_login(){
			layer.open({
				type: 2,
				title: '登录',
				shadeClose: true,
				maxmin: true, //开启最大化最小化按钮
				area: ['450px', '450px'],
				content: ["<?php echo url('login/login'); ?>", 'no'],
			  });
		}
		
		$('#ipt_search').on('keydown', function (event) {
		        if (event.which === 13) { // Enter键的键码为13
		            event.preventDefault(); // 阻止默认行为，比如提交表单等
		            search_btn_click();
		        }
		    });
			
		function search_btn_click(){
			type=$("#type_search").val().trim();
			keyword=$("#ipt_search").val().trim();
			if(type==''||type=='请选择'){
				layer.alert('请选择分类', {icon: 2});return false;
			}
			if(keyword==''){
				layer.alert('请输入关键词', {icon: 2});return false;
			}
			// 在这里编写处理回车事件的代码
			window.location.href="<?php echo url('index/search'); ?>?type="+type+"&keyword="+keyword;
		}	
	</script>
</html>